
#!/bin/bash

MODULE='my_seqfile'

MODULE_STATUS=`lsmod | grep ${MODULE}`
[ "${MODULE_STATUS}" != "" ] && sudo rmmod ${MODULE}


sudo dmesg -c > /dev/null

sudo insmod ${MODULE}.ko

dd if=/proc/myseq of=out1 count=1
dd if=/proc/myseq skip=1 of=out2 count=1

sudo rmmod ${MODULE}
#sudo dmesg | tail
